package com.atguigu.orderService.client;

import com.atguigu.commonUtils.vo.CourseVo;
import com.atguigu.orderService.client.impl.EduClientImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-edu",fallback = EduClientImpl.class)
public interface EduClient {

    @ApiOperation("根据课程id查询课程信息")
    @GetMapping("/eduService/courseFront/getCourseInfo/{courseId}")
    public CourseVo getCourseInfo(@PathVariable("courseId") String courseId);

}
